package com.niodata.dp.monitor.sharelib.entity.file;

import com.niodata.dp.monitor.common.util.MathUtil;

public class DataSetCompletenessRate {

  private String dataSetId;
  private double rate;

  public String getDataSetId() {
    return dataSetId;
  }

  public void setDataSetId(String dataSetId) {
    this.dataSetId = dataSetId;
  }

  public double getRate() {
    return rate > 0 ? MathUtil.handlePercentWithFixDecimalPlaces(rate, 2) : rate;
  }

  public void setRate(double rate) {
    this.rate = rate;
  }
}
